<?php
/**
 * Created by PhpStorm.
 * User: yuyj
 * Date: 16-12-21
 * Time: 下午4:20
 */

namespace common\repositories\common;


use common\entities\common\MyscrmApplicationInfoEntity;
use common\repositories\BaseRepository;

class MyscrmApplicationInfoRepository extends BaseRepository
{
    /**
     * 获取应用列表
     * @return array|MyscrmApplicationInfoEntity[]
     */
    public function getApplicationList()
    {
        return MyscrmApplicationInfoEntity::find()
            ->select(['application_id', 'application_name'])
            ->asArray()
            ->all();
    }


}